package com.ffcs.web.model.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FreeAsk entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_freeAsk")
public class FreeAsk implements java.io.Serializable {

	// Fields

	private Integer id;
	private String direction;
	private Integer userId;
	private Date askTime;
	@Transient
	private String askTimeStr;
	private String question;
	private String pingjia;
	private Date pingjiaTime;
	@Transient
	private String pingjiaTimeStr;
	private String pingjiaxx;
	private String askCounseTel;
	private String counseAnswer;
	private Date counseAskTime;
	private Short status;
	private Short type;
	private Short isLoad;
	@Transient
	private String isYuyin;

	// Constructors

	/** default constructor */
	public FreeAsk() {
	}

	/** minimal constructor */
	public FreeAsk(String direction, Integer userId, Date askTime,
			String question, Short status) {
		this.direction = direction;
		this.userId = userId;
		this.askTime = askTime;
		this.question = question;
		this.status = status;
	}

	/** full constructor */
	public FreeAsk(String direction, Integer userId, Date askTime,
			String question, String pingjia, Date pingjiaTime,
			String pingjiaxx, String askCounseTel, String counseAnswer,
			Date counseAskTime, Short status) {
		this.direction = direction;
		this.userId = userId;
		this.askTime = askTime;
		this.question = question;
		this.pingjia = pingjia;
		this.pingjiaTime = pingjiaTime;
		this.pingjiaxx = pingjiaxx;
		this.askCounseTel = askCounseTel;
		this.counseAnswer = counseAnswer;
		this.counseAskTime = counseAskTime;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "direction", nullable = false, length = 30)
	public String getDirection() {
		return this.direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	@Column(name = "userId", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "askTime", nullable = false, length = 19)
	public Date getAskTime() {
		return this.askTime;
	}

	public void setAskTime(Date askTime) {
		this.askTime = askTime;
	}

	@Column(name = "question", nullable = false, length = 2000)
	public String getQuestion() {
		return this.question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	@Column(name = "pingjia", length = 1000)
	public String getPingjia() {
		return this.pingjia;
	}

	public void setPingjia(String pingjia) {
		this.pingjia = pingjia;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "pingjiaTime", length = 19)
	public Date getPingjiaTime() {
		return this.pingjiaTime;
	}

	public void setPingjiaTime(Date pingjiaTime) {
		this.pingjiaTime = pingjiaTime;
	}

	@Column(name = "pingjiaxx", length = 5)
	public String getPingjiaxx() {
		return this.pingjiaxx;
	}

	public void setPingjiaxx(String pingjiaxx) {
		this.pingjiaxx = pingjiaxx;
	}

	@Column(name = "askCounseTel", length = 20)
	public String getAskCounseTel() {
		return this.askCounseTel;
	}

	public void setAskCounseTel(String askCounseTel) {
		this.askCounseTel = askCounseTel;
	}

	@Column(name = "counseAnswer", length = 2000)
	public String getCounseAnswer() {
		return this.counseAnswer;
	}

	public void setCounseAnswer(String counseAnswer) {
		this.counseAnswer = counseAnswer;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "counseAskTime", length = 19)
	public Date getCounseAskTime() {
		return this.counseAskTime;
	}

	public void setCounseAskTime(Date counseAskTime) {
		this.counseAskTime = counseAskTime;
	}

	@Column(name = "status", nullable = false)
	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	@Column(name = "type", nullable = false)
	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	@Column(name = "isLoad", nullable = false)
	public Short getIsLoad() {
		return isLoad;
	}

	public void setIsLoad(Short isLoad) {
		this.isLoad = isLoad;
	}

	@Transient
	public String getAskTimeStr() {
		return askTimeStr;
	}

	public void setAskTimeStr(String askTimeStr) {
		this.askTimeStr = askTimeStr;
	}
	@Transient
	public String getPingjiaTimeStr() {
		return pingjiaTimeStr;
	}

	public void setPingjiaTimeStr(String pingjiaTimeStr) {
		this.pingjiaTimeStr = pingjiaTimeStr;
	}

	@Transient
	public String getIsYuyin() {
		return isYuyin;
	}

	public void setIsYuyin(String isYuyin) {
		this.isYuyin = isYuyin;
	}
	

}